Xceed .NET Libraries Documentation
Xceed.Compression.Formats Assembly / Xceed.Compression.Formats Namespace / XceedCompressedStreamEx Class / Compress Method / Compress(Byte[],String) Method
The array of bytes to compress.
The encryption password to use.


In This Topic
    Compress(Byte[],String) Method
    In This Topic
    Compresses an array of bytes using the extended Xceed compression format using the specified encryption password. Use this method to compress data compatible with the ActiveX Xceed Zip Compression Library (XceedCompression object).
    Syntax
    'Declaration
     
    Public Overloads Shared Shadows Function Compress( _
       ByVal buffer() As Byte, _
       ByVal encryptionPassword As String _
    ) As Byte()
    'Usage
     
    Dim buffer() As Byte
    Dim encryptionPassword As String
    Dim value() As Byte
     
    value = XceedCompressedStreamEx.Compress(buffer, encryptionPassword)
    public new static byte[] Compress( 
       byte[] buffer,
       string encryptionPassword
    )

    Parameters

    buffer
    The array of bytes to compress.
    encryptionPassword
    The encryption password to use.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also